package com.yt.app.core.model;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.beans.Transient;
import java.io.Serializable;

/**
 * Index Banner
 */
@ApiModel(value = "Banner", description = "Banner对象")
public class AppBanner implements Serializable {
    @ApiModelProperty(value = "id", required = true)
    private Long id;
    @ApiModelProperty(value = "标题", required = true)
    private String title;
    @ApiModelProperty(value = "图片地址", required = true)
    private String image;
    @ApiModelProperty(value = "跳转链接", required = true)
    private String link;
    @JSONField(serialize=false)
    @ApiModelProperty(value = "分类，0：首页，1：商城", hidden = true)
    private Integer type;
    @JSONField(serialize=false)
    @ApiModelProperty(value = "排序字段", hidden = true)
    private Integer sort;
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }
}
